package com.swt.draw.service.impl;

import com.swt.draw.dao.Fla55Mapper;
import com.swt.draw.entity.Fla55;
import com.swt.draw.example.Fla55Example;
import com.swt.draw.service.Fla55Service;
import com.swt.draw.vo.page.PageVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName
 * @Description TODO
 * @Author Administrator
 * @Date 2019/10/23 0023 23:31
 * @Version 1.0
 **/
@Service("fla55Service")
public class Fla55ServiceImpl implements Fla55Service {

    @Resource
    private Fla55Mapper fla55Mapper;

    @Override
    public Integer addFla55(Fla55 fla55) {
        return fla55Mapper.insertSelective(fla55);
    }

    @Override
    public Integer delFla55(Fla55Example example) {
        return fla55Mapper.deleteByExample(example);
    }

    @Override
    public Integer updateFla55(Fla55 fla55, Fla55Example fla55Example) {
        return fla55Mapper.updateByExampleSelective(fla55, fla55Example);
    }

    @Override
    public List<Fla55> getAll() {
        Fla55Example example = new Fla55Example();
        example.setOrderByClause("lbid, mcid");
        return fla55Mapper.selectByExample(example);
    }

    @Override
    public List<Fla55> getFla55List(Fla55 fla55, PageVO pageVO) {
        return fla55Mapper.getFla55List(fla55, pageVO);
    }

    @Override
    public Integer getFla55Count() {
        return fla55Mapper.getFla55Count();
    }
}
